DISTRIBUTED COMMITMENT AND RECOVERY: TWO PHASE COMMIT

  • Type: Project
  • Department: Computer Science
  • Project ID: CPU0217
  • Access Fee: ₦5,000 ($14)
  • Chapters: 5 Chapters
  • Pages: 42 Pages
  • Methodology: Nil
  • Reference: YES
  • Format: Microsoft Word
  • Views: 3.7K
  • Report This work

For more Info, call us on
+234 8130 686 500
or
+234 8093 423 853
 
DISTRIBUTED COMMITMENT AND RECOVERY: TWO PHASE COMMIT
ABSTRACT

A formal model for atomic commit protocols for a distrib¬uted database system is introduced. The model is used to prove exis¬tence results about resilient protocols for site failures that do not parti¬tion the network and then for partitioned networks. For site failures, a pessimistic recovery technique, called independent recovery, is intro¬duced and the class of failures for which resilient protocols exist is identified. For partitioned networks, two cases are studied: the pessi¬mistic case in which messages are lost, and the optimistic case in which no messages are lost. In all cases, fundamental limitations on the resiliency of protocols are derived.
Index Terms-Commit protocols, crash recovery, distributed database systems, distributed systems, fault tolerance, transaction management.
 TABLE OF CONTENTS
1  INTRODUCTION                                                                           
1.1 Purpose..........................................................................     
1.2 Objective........................................................................     
1.3 Definitions, Acronyms, and Abbreviations. Abbreviations:........     
1.3.1 Acronyms................................................................      
1.3.2 Definitions ...............................................................
2  Literature Overview                                                                      
2.1 Two Phase Commit ...............................................................
2.2 One Phase Commit ...............................................................
2.3  Presumed Abort Two Phase Commit................................... ....
2.4 Presumed Commit Protocol.....................................................
2.5 1-2 PC Protocol ....................................................................
2.6 Three Phase Commit..............................................................
2.7 Nonblocking Two phase commit...............................................
2.8 Utility in case of handheld.......................................................
3  Implementation Details                                                                 
3.1 Data Structures.....................................................................
3.2 Algorithm -Two Phase Commit.................................................
3.2.1 Coordinating Site...........................................................
3.2.2 Participating Site.......................................................
3.3 Algorithm - One Phase Commit................................................
3.3.1 Coordinating Site...........................................................
3.3.2 Participating Site............................................................
3.4 Directories and Files...............................................................
3.4.1 Source Code Organisation...............................................
3.4.2 Source Files .................................................................
3.4.3 Functions......................................................................
3.5 Interfaces ............................................................................
3.5.1 Transaction Manager .....................................................
3.5.2 LogManager..................................................................
3.6 Languages Tools and Libraries ................................................
3.6.1 Programming Language .................................................
3.6.2 RPC Paradigm................................................................
3.6.3 Multi-Threading..............................................................
3.6.4 Mutexes and Locks.........................................................
4  Testing and Build                                                                          
4.1 Testcases.............................................................................
4.1.1 Two Phase Commit Protocol - Testcases............................
4.1.2 One Phase Commit Protocol - Testcases............................
4.2 Compilation .........................................................................
5  Conclusion and Future Work                                                           
CHAPTER ONE
 A formal model for transaction processing in a distributed database and then extend it to model several classes of failures and crash recovery techniques. These models are used to study whether or not resilient protocols exist for various failure classes.
Crash recovery in distributed systems has been studied extensively in the literature Many protocols have been designed that are resilient in some environments. All have an "ad hoc" flavor to them in the sense that the class of failures they will survive is not clearly delineated.
The purpose of this project is to formalize the crash recovery problem in a distributed database environment and then give some preliminary results concerning the existence of resilient protocols in various well-defined situations.
Consequently, in the next section we give a brief introduction to transactions in a distributed database.
In Section III we indicate the assumed network environment and our model for transaction processing. In Section IV we extend the model to include the possibility of site failure and give results concerning the existence of resilient protocols in this situation. Section V turns to the possibility of network failure and shows the class of failures for which a resilient protocol exists. Section VI summarizes the results in the previous two sections.
1.2    BACKGROUND OF THE STUDY
A distributed database management system supports a database physically distributed over multiple sites interconnected by a communications network. By definition, a transaction in a distributed database system is a (logically) atomic operation: it must be processed at all sites or at none of them. De-signing protocols resilient to various failures, including arbitrary site failures and partitioning of the communications network, is a very difficult task.
Preserving transaction atomicity in the single-site case is a well-understood problem. The processing of a single transaction is viewed as follows. At some time during its execution, a "commit point" is reached where the site decides to commit or to abort the transaction. A commit is an uncon¬ditional guarantee to execute the transaction to completion, even in the event of multiple failures. Similarly, an abort is an unconditional guarantee to back out the transaction so that none of its effects persist. If a failure occurs before the commit point is reached, then immediately upon recovery the site will abort the transaction. Both commit and abort are irreversible.In the multiple site case, it is the task of a commit protocol to enforce global atomicity. Assuming that each site has a recovery strategy that provides atomicity at the local level, the problem becomes one of ensuring that the sites either unanimously abort or unanimously commit the transaction. A mixed decision results in an inconsistent database. In the absence of failures, a unanimous consensus is easily obtained by a simple protocol. The challenge then is to find protocols ensuring atomicity in the presence of inopportune and perhaps repetitive failures.
A basic assumption within this project is that during the initial phase of distributed transaction processing any participating site can unilaterally abort the transaction. A site may choose to abort for any of the following reasons:
1)     One or more sites fail,
2)     The network fails,
3)     The transaction deadlocks with another transaction,
4)     The user aborts the transaction.
Clearly, before any site can commit the transaction, all sites must relinquish their right to unilaterally abort it. Once a site has relinquished that right, it can abort the transaction only in concordance with the other sites.
1.2   PURPOSE OF THE STUDY
To design and implement an optimized commit protocol (1 PC and 2 PC) for transactions in
distributed Database Management Systems which ensure atomicity and durability, in particularfor handheld devices.
1.4   OBJECTIVE OF THE STUDY
The protocol development involves algorithms for the coordinator and participating pro¬cesses within Transaction Manager to provide global atomicity.
It guarantees uniform execution of transaction ensuring that all participating sites commit or all abort even when subject to network failures, coordinating and participating site failures.
The distributed computer system ensures reliability by providing redundant resources on different nodes. It leads to problems like lack of global state information, the possibility of partial failure and performing parallel operations. Hence, to maintain consistency an atomic transaction model is required.
In D-DBMS, database may be replicated or fragmented on multiple sites. A single trans¬action may involve the modifications in the database at multiple sites. For maintaining the consistency, more specifically, guarantying the ACID properties it is necessary for the transaction manager to ensure that the transaction gets successfully completed at all the sites participating in the transaction or on none of them. The Commit Protocol is to be designed to handle all these issues.
This protocol is intended to be applicable in DBMS for handheld devices, e.g. Simputer. It has to handle the issues common to the mobile environment like frequent disconnections, high communication prices etc.
Both the protocol 2PC and 1PC, have been designed and implemented
DEFINITIONS OF TERM
Coordinating site: The site that initiates the transaction.
Participating sites: The sites at which the transaction gets executed.
Deferred constraints: The constraints checks that are validated only at the time of the com¬mit.
Voting phase: The phase in which the coordinating site communicate with

DISTRIBUTED COMMITMENT AND RECOVERY: TWO PHASE COMMIT
For more Info, call us on
+234 8130 686 500
or
+234 8093 423 853

Share This
  • Type: Project
  • Department: Computer Science
  • Project ID: CPU0217
  • Access Fee: ₦5,000 ($14)
  • Chapters: 5 Chapters
  • Pages: 42 Pages
  • Methodology: Nil
  • Reference: YES
  • Format: Microsoft Word
  • Views: 3.7K
Payment Instruction
Bank payment for Nigerians, Make a payment of ₦ 5,000 to

Bank GTBANK
gtbank
Account Name Obiaks Business Venture
Account Number 0211074565

Bitcoin: Make a payment of 0.0005 to

Bitcoin(Btc)

btc wallet
Copy to clipboard Copy text

500
Leave a comment...

    Details

    Type Project
    Department Computer Science
    Project ID CPU0217
    Fee ₦5,000 ($14)
    Chapters 5 Chapters
    No of Pages 42 Pages
    Methodology Nil
    Reference YES
    Format Microsoft Word

    Related Works

    ABSTRACT A formal model for atomic commit protocols for a distrib¬uted database system is introduced. The model is used to prove exis¬tence results about resilient protocols for site failures that do not parti¬tion the network and then for partitioned networks. For site failures, a... Continue Reading
    ABSTRACT Wireless hotspots are typically implemented using 802.11 APs. Each AP typically operates on a single, administrator-configured wireless channel. Each client associates with a single AP and subsequently interacts with this AP alone, on the AP’s configured channel. As a basic design rule, APs within radio frequency (RF) range of each... Continue Reading
    ABSTRACT Wireless hotspots are typically implemented using 802.11 APs. Each AP typically operates on a single, administrator-configured wireless channel. Each client associates with a single AP and subsequently interacts with this AP alone, on the AP’s configured channel. As a basic design rule, APs within radio frequency (RF) range of each... Continue Reading
    Abstract The recruitment process has always been critical to the success or failure of organizations. Organizations constantly seek better methods of recruiting staff that will require minimal effort to seamlessly fit in with the organizations business processes and thus provide recruitment agencies with the means with which to determine which... Continue Reading
    Adding to the requirement and need for power supply for day to day activities, it is therefore a necessity to design the power system to maintain minimal technical losses in the network, because most of our system component lack sufficient reactive power ability, this mean that the penetration of distributed generation (DG) will give way to reduce... Continue Reading
    Adding to the requirement and need for power supply for day to day activities, it is therefore a necessity to design the power system to maintain minimal technical losses in the network, because most of our system component lack sufficient reactive power ability, this mean that the penetration of distributed generation (DG) will give way to reduce... Continue Reading
    Abstract The recruitment process has always been critical to the success or failure of organizations.  Organizations constantly seek better methods of recruiting staff that will require minimal  effort to seamlessly fit in with the organizations business processes and thus provide  recruitment agencies with the means with which to determine... Continue Reading
    ABSTRACT Multimedia technologies are attracting more and more interest every day. Video-on-Demand is one of the buzzwords today and is now available for the public. Content providers such as publishers, broadcasting companies and audio/video production firms must be able to archive and index their productions for later retrieval. This is a... Continue Reading
    ABSTRACT Multimedia technologies are attracting more and more interest every day. Video-on-Demand is one of the buzzwords today and is now available for the public. Content providers such as publishers, broadcasting companies and audio/video production firms must be able to archive and index their productions for later retrieval. This is a... Continue Reading
    ABSTRACT We consider several distributed collaborative key agreement and authentication protocols for dynamic peer groups. There are several important characteristics which make this problem different from traditional secure group communication. They are: 1) distributed nature in which there is no centralized key server; 2) collaborative nature in... Continue Reading
    Call Us
    whatsappWhatsApp Us